package org.stvd.entities.common;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;
import org.stvd.core.annotation.serializer.DateTimeSerializer;
import org.stvd.entities.base.BaseEntity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;

/**
 * 短信发送-实体类
 * @author houzx
 */
@Entity
@Table(name="msg_send_his")
public class MsgSendHis extends BaseEntity{

    private static final long serialVersionUID = -1860807842137638744L;
    
    /**
     * //记录主键标识
     */
    @Id
    @Column(name="his_id" , nullable = false)
    private String hisId = "";
    
    /**
     * 短信用途
     */
    @Column(name="use_for")
    private String useFor = "";
    
    /**
     * 接收者手机号
     */
    @Column(name="receiver_no")
    private String receiverNo = "";
    
    /**
     * 短信内容
     */
    @Column(name="content")
    private String content = "";
    
    /**
     * 短信发送人
     */
    @Column(name="send_person")
    private String sendPerson = "";
    
    /**
     * 发送时间
     */
    @Column(name="send_time")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonSerialize(using = DateTimeSerializer.class)
    private Date sendTime = null;

    public String getHisId() {
        return hisId;
    }

    public void setHisId(String hisId) {
        this.hisId = hisId;
    }

    public String getUseFor() {
        return useFor;
    }

    public void setUseFor(String useFor) {
        this.useFor = useFor;
    }

    public String getReceiverNo() {
        return receiverNo;
    }

    public void setReceiverNo(String receiverNo) {
        this.receiverNo = receiverNo;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getSendPerson() {
        return sendPerson;
    }

    public void setSendPerson(String sendPerson) {
        this.sendPerson = sendPerson;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }
}
